$(".form2 input[type='button']").click(function(){
    if($(".form2 .p2 input").val()&&$(".form2 .p3 input").val()){
        axios.get(logAPI,{
            params:{
                username:$(".form2 .p2 input").val(),
                password:$(".form2 .p3 input").val(),
            }
        }).then(function(r){
            alert(r.data.msg)
            // console.log(r)
            if(r.data.code==1){
                localStorage.setItem("username",$('.form2 .p2 input').val())
               localStorage.setItem("token",r.data.data.token)
                localStorage.setItem("uid",r.data.data.id)
               location.href="index.html"
            }
        })
    }else{
        alert("请填写个人信息")
    }
})